package com.bluefuture.common.utils;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    UNKONW_ERROR(-1, "未知错误"),
    PARAM_ERROR(1000,"参数错误"),
    SMS_SEND_ERROR(1001,"验证码发送失败"),
    SMS_CODE_ERROR(1002,"验证码校验失败"),
    EMAIL_CODE_ERROR(1003,"验证码校验失败"),
    IMG_UPLOAD_ERROR(1004,"图片上传失败"),

    USER_ACCOUNT_PASSWORD_ERROR(1021,"账号或密码错误"),
    USER_NO_REGISTER_ERROR(1022,"用户未注册"),
    TOKEN_EXPIRED_ERROR(1023,"token已过期，请重新登录"),
    TOKEN_INVALID_ERROR(1024,"token无效"),
    USER_ORIGINAL_PASSWORD_ERROR(1025,"原密码输入有误"),
    MOBILE_ALREADY_REGISTERED_ERROR(1026,"手机号已注册"),
    EMAIL_ALREADY_REGISTERED_ERROR(1027,"邮箱已注册"),
    IOS_SERVER_NOT_RETURN_ERROR(2000,"苹果服务器没有返回验证结果"),
    RECEIPT_DATA_ERROR(2001,"receipt-data无效");

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
